package com.yunji.common.model.params;

import java.io.Serializable;

/**
 * @version 1.0
 * @Project: yunji-coffee
 * @Package com.yunji.netty.domain
 * @FileName Message.java
 * @Copyright Copyright © 2024 云集互联. All Rights Reserved
 * Company		com
 * @CreateTime 2024-07-29 11:05:43
 * @Description 业务消息体
 * @Modification Author                    History Time			Version				Description
 * ----------------------------------------------------------------------------------
 * HuaAo0803@163.com	2024-03-25 10:45:41		1.0					业务消息体
 * @since JDK 1.8.0_202
 */
public class CabinetMessage implements Serializable {
    private static final long serialVersionUID = -35360751627084876L;

    // 设备唯一标识
    private Long equipment;

    // 货柜代码
    private String code;
    // 签名信息
    private String sign;
    // 内容信息
    private String text;
    // 指令信息
    private byte command;

    private String msgId;

    private byte[] data;

    public Long getEquipment() {
        return equipment;
    }

    public void setEquipment(Long equipment) {
        this.equipment = equipment;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public byte getCommand() {
        return command;
    }

    public void setCommand(byte command) {
        this.command = command;
    }

    public String getMsgId() {
        return msgId;
    }

    public void setMsgId(String msgId) {
        this.msgId = msgId;
    }

    public byte[] getData() {
        return data;
    }

    public void setData(byte[] data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "Message{" + "code='" + code + '\'' + ", sign='" + sign + '\'' + ", text='" + text +
                '\'' + ", command=" + command + ", msgId='" + msgId + '\'' + '}';
    }
}
